package org.jeecg.modules.mall.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: mall_pos_table_order_goods
 * @Author: jeecg-boot
 * @Date:   2023-05-17
 * @Version: V1.0
 */
@Data
@TableName("mall_pos_table_order_goods")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mall_pos_table_order_goods对象", description="mall_pos_table_order_goods")
public class MallPosTableOrderGoods implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**关联租户*/
	@Excel(name = "关联租户", width = 15)
    @ApiModelProperty(value = "关联租户")
    private String tenantId;
	/**关联酒店*/
	@Excel(name = "关联酒店", width = 15)
    @ApiModelProperty(value = "关联酒店")
    private String hotelId;
	/**会员卡id*/
	@Excel(name = "会员卡id", width = 15)
    @ApiModelProperty(value = "会员卡id")
    private String memberId;
	/**订单号*/
	@Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单号")
    private String code;
	/**pos桌台id*/
	@Excel(name = "pos桌台id", width = 15)
    @ApiModelProperty(value = "pos桌台id")
    private String posTableId;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remarks;
	/**支付方式 1会员卡 2积分 3微信*/
	@Excel(name = "支付方式 1会员卡 2积分 3微信", width = 15)
    @ApiModelProperty(value = "支付方式 1会员卡 2积分 3微信")
    private Integer paymentMethod;
	/**积分支付价格*/
	@Excel(name = "积分支付价格", width = 15)
    @ApiModelProperty(value = "积分支付价格")
    private BigDecimal integralPayMoney;
	/**价格*/
	@Excel(name = "价格", width = 15)
    @ApiModelProperty(value = "价格")
    private BigDecimal money;
	/**付款状态 0未付款 1已付款*/
	@Excel(name = "付款状态 0未付款 1已付款", width = 15)
    @ApiModelProperty(value = "付款状态 0未付款 1已付款")
    private Integer payStatus;
	/**订单状态 1待接待 2已接单 3已完成 4已拒绝 5已取消*/
	@Excel(name = "订单状态 1待接待 2已接单 3已完成 4已拒绝 5已取消", width = 15)
    @ApiModelProperty(value = "订单状态 1待接待 2已接单 3已完成 4已拒绝 5已取消")
    private Integer status;
	/**第三方支付单号*/
	@Excel(name = "第三方支付单号", width = 15)
    @ApiModelProperty(value = "第三方支付单号")
    private String thirdOrderNo;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**操作人*/
	@Excel(name = "操作人", width = 15)
    @ApiModelProperty(value = "操作人")
    private String operate;
    /**商城用户id*/
    @Excel(name = "商城用户id", width = 15)
    @ApiModelProperty(value = "商城用户id")
    private String mallUserId;

    @ApiModelProperty(value = "订单商品列表")
    @TableField(exist = false)
    private List<MallPosTableOrderGoodsDetail> detailList;

    @ApiModelProperty(value = "区域")
    @TableField(exist = false)
    private String regionName;

    @ApiModelProperty(value = "餐台")
    @TableField(exist = false)
    private String tableNo;

    @ApiModelProperty(value = "状态")
    @TableField(exist = false)
    private String statusName;
}
